<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>采购单所有详情</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function goback(){
		window.history.back();
	}
</script>
</head>
<body>
	<table width="100%"  border="0" cellpadding="0" cellspacing="0">
	  <tr>
	    <td nowrap class="title1">您的位置：工作台面－－采购管理－－采购单详情</td>
	  </tr>
	</table>
	<table width="100%"  border="0" cellpadding="0" cellspacing="1">
	  <tr>
		<td nowrap class="toolbar" colspan="9">&nbsp;</td>
	  </tr>
	  </tr>
		<tr>
			<td class="title1">采购单编号</td>
			<td class="title1">创建日期</td>
			<td class="title1">供应商名称</td>
			<td class="title1">创建用户</td>
			<td class="title1">附加费用</td>
			<td class="title1">采购产品总价</td>
			<td class="title1">采购单总价格</td>
			<td class="title1">付款方式</td>
			<td class="title1">最低预付款金额</td>
		</tr>
			  <tr>
			    <td align="center">${pomain.poId }</td>
			    <td align="center">${pomain.createTime }</td>
				<td align="center">${pomain.venderName }</td>
				<td align="center">${pomain.account }</td>
			    <td align="center">${pomain.tipFee }</td>
			 
			    <td align="center">${pomain.productTotal }</td>
			    <td align="center">${pomain.poTotal }</td>
			    <td align="center">
				    <c:if test="${pomain.payType==1 }">货到付款</c:if>
				    <c:if test="${pomain.payType==2 }">款到发货</c:if>
				    <c:if test="${pomain.payType==3 }">预付款到发货</c:if>
			    </td>
			    <td align="center">${pomain.prePayFee }</td>
			  </tr>
  		<tr>
  			<td class="title1" width=20%>入库时间</td>
			<td class="title1" width=20%>入库操作用户</td>
			<td class="title1">&nbsp;</td>
			
  		</tr>
			 <tr>
			    <td align="center">${pomain.stockTime }</td>
			    <td align="center">${pomain.stockUser }</td>
			    <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
			</tr>
  	<c:if test="${pomain.payType==3 }">
	  		<tr>
	  			<td class="title1" width=20%>预付时间</td>
				<td class="title1" width=20%>预付操作用户</td>
				<td class="title1">&nbsp;</td>
	  		</tr>
				  <tr>
				    <td align="center">${pomain.prePayTime }</td>
				    <td align="center">${pomain.prePayUser }</td>
					<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
				</tr>
	</c:if>
	  		<tr>
	  			<td class="title1" width=20%>付款时间</td>
				<td class="title1" width=20%>付款操作用户</td>
				<td class="title1">&nbsp;</td>
	  		</tr>
				  <tr>
				    <td align="center">${pomain.endTime }</td>
				    <td align="center">${pomain.endUser }</td>
					<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
				</tr>
	  		<tr>
	  			<td class="title1">产品编号</td>
				<td class="title1">产品名称</td>
				<td class="title1">产品数量单位</td>
				<td class="title1">产品数量</td>
				<td class="title1">采购单价</td>
				<td class="title1">产品明细总价</td>
	  		</tr>
	  		<c:forEach items="${poitems }" var="poitem">
				  <tr>
				    <td align="center">${poitem.productCode }</td>
				    <td align="center">${poitem.productName }</td>
				    <td align="center">${poitem.unitName }</td>
				    <td align="center">${poitem.num }</td>
				    <td align="center">${poitem.unitPrice }</td>
				    <td align="center">${poitem.num*poitem.unitPrice}</td>
				    <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
				</tr>
			</c:forEach>
	 </table>
	 <br/>
	 <center><input type="button" value="返回" onclick="goback()"/></center>
</body>
</html>